import request from '@/utils/request'

// 创建传感器系统分类
export function createSensorSysType(data) {
  return request({
    url: '/hardware/sensor-sys-type/create',
    method: 'post',
    data: data
  })
}

// 更新传感器系统分类
export function updateSensorSysType(data) {
  return request({
    url: '/hardware/sensor-sys-type/update',
    method: 'put',
    data: data
  })
}

// 删除传感器系统分类
export function deleteSensorSysType(id) {
  return request({
    url: '/hardware/sensor-sys-type/delete?id=' + id,
    method: 'delete'
  })
}

// 获得传感器系统分类
export function getSensorSysType(id) {
  return request({
    url: '/hardware/sensor-sys-type/get?id=' + id,
    method: 'get'
  })
}

// 获得传感器系统分类List
export function getSensorSysTypeList(query) {
  return request({
    url: '/hardware/sensor-sys-type/list',
    method: 'get',
    params: query
  })
}

// 获得传感器系统分类分页
export function getSensorSysTypePage(query) {
  return request({
    url: '/hardware/sensor-sys-type/page',
    method: 'get',
    params: query
  })
}

// 导出传感器系统分类 Excel
export function exportSensorSysTypeExcel(query) {
  return request({
    url: '/hardware/sensor-sys-type/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
